namespace ChinaCircleJerk.Data.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class initCommit3 : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.LookUps",
                c => new
                    {
                        Id = c.Int(nullable: false, identity: true),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.LookUpLookUps",
                c => new
                    {
                        LookUp_Id = c.Int(nullable: false),
                        LookUp_Id1 = c.Int(nullable: false),
                    })
                .PrimaryKey(t => new { t.LookUp_Id, t.LookUp_Id1 })
                .ForeignKey("dbo.LookUps", t => t.LookUp_Id)
                .ForeignKey("dbo.LookUps", t => t.LookUp_Id1)
                .Index(t => t.LookUp_Id)
                .Index(t => t.LookUp_Id1);
            
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.LookUpLookUps", "LookUp_Id1", "dbo.LookUps");
            DropForeignKey("dbo.LookUpLookUps", "LookUp_Id", "dbo.LookUps");
            DropIndex("dbo.LookUpLookUps", new[] { "LookUp_Id1" });
            DropIndex("dbo.LookUpLookUps", new[] { "LookUp_Id" });
            DropTable("dbo.LookUpLookUps");
            DropTable("dbo.LookUps");
        }
    }
}
